OBJ=$(patsubst %.c, %.o, $(wildcard ./*.c))
TARGET=libMyDiv.a


$(TARGET):$(OBJ)
	$(AR) -r $(TARGET) $^

#模式匹配  %目标：%依赖
%.o:%.c
	$(CC) -c $^ -o $@

#伪目标
.PHONY:clean install

clean:
	$(RM) *.o $(TARGET)

show:
	echo $(wildcard ./*.c)
	echo $(patsubst %.c, %.o, $(wildcard ./*.c))
